using System;

/// <summary>
/// Summary description for UserProfile
/// </summary>
/// 
namespace CE.User
{
    public class UserViewHistory
    {
        public UserViewHistory()
        {
            //
            // TODO: Add constructor logic here
            //
            ClearFields();
        }
        private Int64 _viewedid;
        private string _ipnumber;
        private string _pagetype;
        private string _browsertype;
        private string _browserinfo;
        private byte _viewedcount;
        private string _vieweddescription;
        private DateTime _vieweddate;

        //extra field for future extend
        private string _info1;
        private string _info2;
        private string _info3;
        private string _info4;
        private string _info5;

        public Int64 ViewedId
        {
            get { return _viewedid; }
            set { _viewedid = value; }
        }
        
        public string IPNumber
        {
            get { return _ipnumber; }
            set { _ipnumber = value; }
        }

        public string PageType
        {
            get { return _pagetype; }
            set { _pagetype = value; }
        }

        public string BrowserType
        {
            get { return _browsertype; }
            set { _browsertype = value; }
        }

        public string BrowserInfo
        {
            get { return _browserinfo; }
            set { _browserinfo = value; }
        }

        public byte ViewedCount
        {
            get { return _viewedcount; }
            set { _viewedcount = value; }
        }

        public string ViewedDescription
        {
            get { return _vieweddescription; }
            set { _vieweddescription = value; }
        }

        public DateTime ViewedDate
        {
            get { return _vieweddate; }
            set { _vieweddate = value; }
        }

        public string Info1
        {
            get { return _info1; }
            set { _info1 = value; }
        }

        public string Info2
        {
            get { return _info2; }
            set { _info2 = value; }
        }

        public string Info3
        {
            get { return _info3; }
            set { _info3 = value; }
        }

        public string Info4
        {
            get { return _info4; }
            set { _info4 = value; }
        }

        public string Info5
        {
            get { return _info5; }
            set { _info5 = value; }
        }

        public void ClearFields()
        {
            _viewedid = 0;
            _ipnumber = "";
            _pagetype = "";
            _browserinfo = "";
            _viewedcount = 0;
            _vieweddescription = "";
            _vieweddate = new DateTime(1900, 1, 1);

            //extra field for future extend
            _info1 = "";
            _info2 = "";
            _info3 = "";
            _info4 = "";
            _info5 = "";
        }

    }
}
